package org.yn.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class BaseQuery {
    // 高级查询参数
    private  String keyword;
    // 每页多少个
    private  Integer pageSize;
    //第几页(当前页
    private  Integer currentPage;
    //计算起始位置
    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }

}
